import request from '../utils/request'

export const login = (params) => {
  return request({
    method: 'post',
    url: '/api/login',
    data: params
  })
}

export const logout = () => {
  return request({
    method: 'post',
    url: '/logout'
  })
}


export const getMenu = () => {
  return request({
    method: 'get',
    url: '/api/menu'
  })
}